package com.qd.panda.model;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 功能
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_channel_fun")
public class ChannelFun extends Model<ChannelFun> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "func_id", type = IdType.ASSIGN_ID)
    private String funcId;
    /**
     * 二维码地址
     */
    @TableField("qr_code")
    private String qrCode;
    /**
     * 添加时间
     */
    @TableField("add_time")
    private LocalDateTime addTime;
    /**
     * 渠道编码
     */
    @TableField("channel_code")
    private String channelCode;
    /**
     * 小程序功能地址
     */
    @TableField("func_url")
    private String funcUrl;
    /**
     * 是否启用
     */
    @TableField("enable")
    private String enable;

    public void freeData() {
        this.funcId = null;
        this.qrCode = null;
        this.addTime = null;
        this.channelCode = null;
        this.funcUrl = null;
        this.enable = null;
    }

}
